package com.example.entity;


import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("comment_commodity")
public class Commodity {
    private static final long serialVersionUID = -1242493306307174690L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    //    用户名称
    private String username;
    //    评论星数
    private Long classImage;
    //    评论内容
    private String comment;
    //    对应商品id
    private String commodityId;
    //    图片
    private String image;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
    //    上传时间
    @TableField(select = false)
    private String pageTime;

    @TableField(select = false, exist = false)
    private JSONArray imageList;
}
